package com.djzhu.algorithm.sort;

import org.junit.Test;

/**
 * Descriptions...
 *
 * @author DJ.Zhu
 */
public class TestSort {

    @Test
    public void testQuickSort() {
        Integer[] arr = new Integer[]{3, 1, 2, 9, 7, 5, 4, 6, 8};
        QuickSort quickSort = new QuickSort();
        quickSort.sort(arr);
    }

    @Test
    public void testShellSort(){
        Integer[] arr = new Integer[]{3, 1, 2, 9, 7, 5, 4, 6, 8};
        ShellSort shellSort = new ShellSort();
        shellSort.sort(arr);
        shellSort.print(arr);
    }

}
